package com.ruoyi.file.service;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.api.domain.SysFile;

/**
 * @author breeze
 * @date 2022-08-04
 */
public interface ISysFileService extends IService<SysFile>{

	public static final String PROTOCOL_LOCAL = "file:///";
	
    public SysFile selectSysFileByFileId(Long fileId);

    public List<SysFile> selectSysFileList(SysFile sysFile);
    
    public SysFile uploadFile(MultipartFile file) throws Exception;

    public void download(long fileId, String downType, HttpServletResponse response) throws IOException;

	public List<SysFile> selectSysFileListByFileIds(Long[] fileIds);
  
}
